Help > Reference > Macros > Tab object > Item property

Item property

You can use this property to access a Document object, using its index in the current search results. If you intended to enumerate the documents in the search results, the preferred method is to use one of the Fetch methods, as they are optimized for performance and allow you or the user to control the subset of information that is enumerated.

Member of

Tab

Type

Read-Only Variant(Index) Property (Document)

The following example uses this property to enumerate the documents collection. It is for demonstration purposes only, consider using FetchAll instead.

Example

Set FSO = CreateObject("Scripting.FileSystemObject")
Set Output = FSO.CreateTextFile("c:\output.txt", True)
For I = 0 To App.ActiveTab.Count-1
  Output.WriteLine App.ActiveTab.Item(I).AbsoluteFilename
Next

See Also

Macro Object Model

Tab